<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        /**
         * rest参数，形式为"...变量名"，表示不定长参数，其本质上就是一个数组
         */ 
        function f1(a,...b){
            console.log(a)
            console.log(b)
        }

        // f1(1,2,3,4,5)

        /**
         * 扩展操作符
         */ 
        var nums = [1,2,3]
        console.log(Math.max(...nums))



    </script>
</head>
<body>
    
</body>
</html>